<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template('member', 'header'); ?>
<script type="text/javascript" src="<?php echo JS_PATH;?>formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>formvalidatorregex.js" charset="UTF-8"></script>
<link href="<?php echo CSS_PATH;?>dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>dialog.js"></script>
<script language="JavaScript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#nickname").formValidator({onshow:"<?php echo L('input').L('nickname');?>",onfocus:"<?php echo L('nickname').L('between_2_to_20');?>"}).inputValidator({min:2,max:20,onerror:"<?php echo L('nickname').L('between_2_to_20');?>"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"<?php echo L('nickname').L('format_incorrect');?>"}).ajaxValidator({
	    type : "get",
		url : "",
		data :"m=member&c=index&a=public_checknickname_ajax&userid=<?php echo $memberinfo['userid'];?>",
		datatype : "html",
		async:'false',
		success : function(data){
            if( data == "1" ) {
                return true;
			} else {
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "<?php echo L('already_exist');?>",
		onwait : "<?php echo L('connecting_please_wait');?>"
	}).defaultPassed();

	<?php echo $formValidator;?>
});

//-->
</script>
<div id="memberArea">
	<?php include template('member', 'account_manage_left'); ?>
	<div class="col-auto">
<div id="mainbody" class="newest">
	<div style="width:600px; margin-left:50px;">
<table width="600" height="30" border="0" align="center" cellpadding="0" cellspacing="0" class="dixian">
  <tr>
    <td align="left"><?php echo L('modify').L('memberinfo');?></td>
  </tr>
</table>
<form method="post" action="" id="myform" name="myform">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="zit02">
		<tr>
						<th  height="38" align="left"><?php echo L('nickname');?></th>
						<td align="left"><input id="nickname"   class="biank"  name="nickname" value="<?php echo $memberinfo['nickname'];?>" type="text"  size="30"></td>
					</tr>

					<?php $n=1; if(is_array($forminfos)) foreach($forminfos AS $k => $v) { ?>
					<tr>
						<th  height="38" align="left"><?php if($v['isbase']) { ?><font color=red>*</font><?php } ?> <?php echo $v['name'];?>：<?php if($v['tips']) { ?><br />(<?php echo $v['tips'];?>)<?php } ?></th>
						<td align="left"><?php echo $v['form'];?></td>
					</tr>
					<?php $n++;}unset($n); ?>
  <tr>
    <td height="56">&nbsp;</td>
    <td height="19" align="left"><div><input type="submit" class="buttontj" value="<?php echo L('sub_data');?>" name="dosubmit"></div></td>
  </tr>
</table>
</form>
</div>
</div>

	</div>
</div>
<div class="clear"></div>
<?php include template('member', 'footer'); ?>


